import {getRequest, postRequest, putRequest} from "@/api/request";

export const doGetRoom=(condition)=>postRequest('/room/getRoom',condition);

export const doUpdateRoomStatus = (id) => getRequest('/room/updateRoomStatus',{id})

export const doDeleteRoom = (id) => getRequest('/room/deleteRoom',{id})

export const doAddRoom = (room) =>postRequest('/room/addRoom',room);

export const doUpdateRoom = (room)=>putRequest('/room/updateRoom',room);

export const doGetRoomByName = (name)=>getRequest('/room/getRoomByName',{name})